<style type="text/css">
    input:focus {
        color: red;
    }
</style>
<input value="Aloha!">